﻿using System.ComponentModel.DataAnnotations;

namespace Sharp.WebBooter.Areas.Platform.Models
{
    public class PermissionIndexViewModel
    {

        public PermissionIndexViewModel()
        {
        }
        /// <summary>
        /// Id
        /// </summary>
        public System.Guid Id { get; set; }
        /// <summary>
        /// 上级
        /// </summary>
        public System.Guid? ParentId { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderIndex
        {
            get;
            set;
        }
        /// <summary>
        /// 名称
        /// </summary>
        /// <value>标题</value>
        [Display(Name = "名称")]
        public string Title { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        /// <value>备注</value>
        [Display(Name = "备注")]
        public string Remark { get; set; }


        /// <summary>
        /// 为控件显示用的属性
        /// </summary>
        /// <![CDATA[<treegrid-@Model.Id treegrid-parent-@Model.ParentId>]]>
        public string Itemclass { get; set; }

    }
}